package com.changgou.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Category;

/**
 * 分类调用
 * 
 * @author gaofeng
 * @date 2025/4/29 10:52
 */
@FeignClient(value = "goods")
@RequestMapping(value = "/category")
public interface CategoryFeign {
    /**
     * 获取分类的对象信息
     * 
     * @param id 主键
     * @return 分类信息
     */
    @GetMapping("/findById/{id}")
    Result<Category> findById(@PathVariable(name = "id") Integer id);
}
